#include <QGuiApplication>
#include <QQmlApplicationEngine>
#include <QSslConfiguration>
#include "beans/systemconfig.h"
#include "controlService/controlservice.h"

int main(int argc, char *argv[])
{
     QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
    QCoreApplication::setAttribute(Qt::AA_DontUseNativeDialogs, true);
    QGuiApplication app(argc, argv);

    //初始化配置文件
    SystemConfig::getInstance()->initConfig();

    //初始化界面和相关的类对象
    ControlService c_s(&app);

    return app.exec();
}
